package com.prs.crm.domain.cqunicom;

import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.Cascade;

import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.hr.Person;

/**
 * @author  WangTing
 *
 * 创建时间：2011-3-7 
 * 
 */

//////////票务人员管理

@Entity
@Table(name="cq_ticketer")
public class Ticketer extends BaseEntity{
	
	private static final long serialVersionUID = 1L;
	
	@Id @GeneratedValue(strategy=GenerationType.IDENTITY)
	

	
	private Integer id;
	
	 /**
	 *
	 * 登陆姓名
	 */
	private String name1;
	
	/**
	 *
	 * 真实姓名
	 */
	private String name2;
	
	
	 /**
	 *
	 * 用户密码
	 */
	private String password;
	
	/**
	* 用户权限
	 */
	private String  userStyle;
	
	
	 /**
	 *
	 * 联系电话
	 */
	private String phone_No;
	
	 /**
	 *
	 * 所属公司
	 */
	@ManyToOne
	private Movie movieTick;
	
	 /**
	 *
	 * 备注
	 */
	private String  remark;
	
//	@OneToMany(mappedBy = "ticketer")
//	@Cascade({ org.hibernate.annotations.CascadeType.ALL,
//			org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
//	private Set<Person> person;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}

	public String getName1() {
		return name1;
	}
	public void setName1(String name1) {
		this.name1 = name1;
	}
	public String getName2() {
		return name2;
	}
	public void setName2(String name2) {
		this.name2 = name2;
	}
	
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getPhone_No() {
		return phone_No;
	}
	public void setPhone_No(String phone_No) {
		this.phone_No = phone_No;
	}
	
	public Movie getMovieTick() {
		return movieTick;
	}
	public void setMovieTick(Movie movieTick) {
		this.movieTick = movieTick;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public static long getSerialVersionUID() {
		return serialVersionUID;
	}
	
	public String getUserStyle() {
		return userStyle;
	}
	public void setUserStyle(String userStyle) {
		this.userStyle = userStyle;
	}
//	public Set<Person> getPerson() {
//		return person;
//	}
//	public void setPerson(Set<Person> person) {
//		this.person = person;
//	}
	
	
	
}
